fix(deps): update yamux to 0.13.10, remove vulnerable 0.12.x (high CVE-2026-32314)#240
Merged
louisliu2048 merged 1 commit intomainfrom Mar 30, 2026
Merged
fix(deps): update yamux to 0.13.10, remove vulnerable 0.12.x (high CVE-2026-32314)#240louisliu2048 merged 1 commit intomainfrom
louisliu2048 merged 1 commit intomainfrom
Conversation
…6-32314) libp2p-yamux 0.47.0 depends on both yamux 0.12.x (legacy/backward-compat path, aliased as yamux012) and yamux 0.13.x (default path, aliased as yamux013). yamux 0.12.x is vulnerable to a remote panic via a malformed Data frame with SYN set and length 262145. No upstream release of libp2p-yamux eliminates the yamux 0.12.x dependency, so this commit introduces a local fork of libp2p-yamux under deps/libp2p-yamux that removes yamux012 entirely and uses yamux 0.13.10 exclusively. The xlayer-reth codebase only calls yamux::Config::default() which already routes through the yamux013 code path, so there is no functional change. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Vui-Chee
approved these changes
Mar 30, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Bumps yamux to resolve a high severity vulnerability by eliminating the
vulnerable
yamux 0.12.xdependency from the build.Type of Change
Security Alert
Change
libp2p-yamux 0.47.0(the latest release) intentionally depends on twoversions of yamux simultaneously:
yamux 0.12.x(aliasedyamux012) — legacy backward-compat path, vulnerableyamux 0.13.x(aliasedyamux013) — new default path, safeThe xlayer codebase uses only
yamux::Config::default(), which already routesthrough the yamux013 code path at runtime. However, yamux 0.12.x was still
compiled into the binary, keeping the vulnerable parsing code present.
Because no upstream release of
libp2p-yamuxremoves the yamux012 dependency(libp2p 0.56.0 is the latest), this PR introduces a local fork of
libp2p-yamuxunder
deps/libp2p-yamux— following the same pattern used for the previousjsonwebtoken security fix (
deps/alloy-rpc-types-engine).The fork:
yamux012dependency fromCargo.tomlsrc/lib.rsto useyamux 0.13.xdirectly (noEither<v012, v013>)Config::client(),Config::server(),set_receive_window_size(),set_max_buffer_size(), andset_window_update_mode()methods (none are used in this codebase)set_max_num_streams()method, updated to use the yamux013 APIA
[patch.crates-io]entry in the workspaceCargo.tomlredirectslibp2p-yamuxto the local fork. After the patch,cargo check --workspacepasses cleanly and
Cargo.lockcontains onlyyamux 0.13.10.Checklist
docs/folder